/*
 * Package: org.grassfield.common.service
 * FileName: IMailerService.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package service;

import java.util.Properties;

import javax.activation.DataSource;

/**
 * The Interface IMailerService.
 */
public interface IMailerService {
	
	/**
	 * Sets the data source.
	 * 
	 * @param dataSource the new data source
	 */
	public void setDataSource(DataSource dataSource);
	
	/**
	 * Gets the data source.
	 * 
	 * @return the data source
	 */
	public DataSource getDataSource();

	/**
	 * Gets the to.
	 * 
	 * @return the to
	 */
	public String getTo();

	/**
	 * Sets the to.
	 * 
	 * @param to the new to
	 */
	public void setTo(String to);
	
	/**
	 * Gets the cc.
	 * 
	 * @return the cc
	 */
	public String getCc();
	
	/**
	 * Sets the cc.
	 * 
	 * @param cc the new cc
	 */
	public void setCc(String cc);
	
	/**
	 * Gets the bcc.
	 * 
	 * @return the bcc
	 */
	public String getBcc();
	
	/**
	 * Sets the bcc.
	 * 
	 * @param bcc the new bcc
	 */
	public void setBcc(String bcc);
	

	/**
	 * Gets the from.
	 * 
	 * @return the from
	 */
	public String getFrom();

	/**
	 * Sets the from.
	 * 
	 * @param from the new from
	 */
	public void setFrom(String from);

	/**
	 * Gets the host.
	 * 
	 * @return the host
	 */
	public String getHost();

	/**
	 * Sets the host.
	 * 
	 * @param host the new host
	 */
	public void setHost(String host);

	/**
	 * Gets the props.
	 * 
	 * @return the props
	 */
	public Properties getProps();

	/**
	 * Sets the props.
	 * 
	 * @param props the new props
	 */
	public void setProps(Properties props);

	/**
	 * Gets the title.
	 * 
	 * @return the title
	 */
	public String getTitle();

	/**
	 * Sets the title.
	 * 
	 * @param title the new title
	 */
	public void setTitle(String title);

	/**
	 * Gets the message.
	 * 
	 * @return the message
	 */
	public String getMessage();
	
	/**
	 * Sets the message.
	 * 
	 * @param message the new message
	 */
	public void setMessage(String message);

	/**
	 * Send mail.
	 */
	public void sendMail();
	
}
